<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=utf-8" %>
<%@ include file="/common/taglibs.jsp"%>
	
	<c:choose>
		<c:when test="${fn:length(roleList) gt 0 }">
			<c:forEach var="role" items="${roleList }">
				<table cellpadding="0" cellspacing="0" style="width: 700px;">
					<tr>
						<td width="80%">
							<table>	
								<tr>
									<td style="text-align: center;">
										<c:choose>
											<c:when test="${role.user.userInfo.avatar ne null }">
												<img src="${ctx }/images/avatar.gif" />
											</c:when>
											<c:otherwise>
												<img src="${ctx }/images/avatar.gif" />
											</c:otherwise>
										</c:choose>
									</td>
								</tr>
								<tr>
									<td style="text-align: center;">
										<font color="#1465B7">${role.user.displayName }</font>
									</td>
								</tr>
							</table>
						</td>
						<td width="10%">
							<div id="site-nav">
								<ul class="quick-menu">
									<li class="group menu-item">
										<div class="group-menu">
										  	<a class=menu-hd href="javascript:void(0)" target=_top rel=group>设置分组<b></b></a> 
										  	<div class="menu-bd">
												<div class="menu-bd-panel">
													<div>
														<c:choose>
															<c:when test="${fn:length(deptList) gt 0 }">
																<c:forEach var="dept" items="${deptList }" varStatus="i">
																	<c:if test="${dept.department ne null }">
																		<a href="javascript:void(0)" onclick="changeGroup(${role.user.id },${dept.id })">${dept.displayName }</a><br/>
																	</c:if>
																</c:forEach>
															</c:when>
															<c:otherwise>
																暂无内容
															</c:otherwise>
														</c:choose>
												  	</div>
											  	</div>
										  	</div>
									  	</div>
								  	</li>
							    </ul>
							</div>
						</td>
						<td width="10%">
							<div style="margin-top: 12px;">
								<font color="#ccc">|</font>&nbsp;
								<a style="color: orange;" title="解除绑定" href="javascript:void(0)" onclick="bindDept(${role.department.id},${role.user.id },2)">解除绑定</a>
							</div>
						</td>
					</tr>
				</table>
			</c:forEach>
		</c:when>
		<c:otherwise>
			很抱歉，暂时没有可选人员！
		</c:otherwise>
	</c:choose>